function write_data_to_excel(weights, pathways)

fid = fopen('results.xls', 'w');
fprintf(fid, '%s\t', my_stat.Models{:});
fprintf(fid, '\n');
fprintf(fid, '%f\t%f\t', my_stat.Mean);
fprintf(fid, '\n');
fclose(fid);
type my_results.xls

xlswrite('pathways.xls', analyzed_pathways,2);
[file,path] = uiputfile('*.mat','Save Workspace As');
end